Optimal. Leaf size=45 \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{3 B n (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.112263, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.025, Rules used = {6686} \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{3 B n (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6686
Rubi steps
\begin{align*} \int \frac{\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2}{(a+b x) (c+d x)} \, dx &=\frac{\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{3 B (b c-a d) n}\\ \end{align*}
Mathematica [A] time = 0.0154685, size = 43, normalized size = 0.96 \[ \frac{\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{3 (b B c n-a B d n)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 2.427, size = 11062, normalized size = 245.8 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.36915, size = 522, normalized size = 11.6 \begin{align*} B^{2}{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right )^{2} + 2 \, A B{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A^{2}{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} - \frac{1}{3} \, B^{2}{\left (\frac{3 \,{\left (e n \log \left (b x + a\right )^{2} - 2 \, e n \log \left (b x + a\right ) \log \left (d x + c\right ) + e n \log \left (d x + c\right )^{2}\right )} \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right )}{{\left (b c - a d\right )} e} - \frac{e^{2} n^{2} \log \left (b x + a\right )^{3} - 3 \, e^{2} n^{2} \log \left (b x + a\right )^{2} \log \left (d x + c\right ) + 3 \, e^{2} n^{2} \log \left (b x + a\right ) \log \left (d x + c\right )^{2} - e^{2} n^{2} \log \left (d x + c\right )^{3}}{{\left (b c - a d\right )} e^{2}}\right )} - \frac{{\left (e n \log \left (b x + a\right )^{2} - 2 \, e n \log \left (b x + a\right ) \log \left (d x + c\right ) + e n \log \left (d x + c\right )^{2}\right )} A B}{{\left (b c - a d\right )} e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.484184, size = 466, normalized size = 10.36 \begin{align*} \frac{B^{2} n^{2} \log \left (b x + a\right )^{3} - B^{2} n^{2} \log \left (d x + c\right )^{3} + 3 \,{\left (B^{2} n \log \left (e\right ) + A B n\right )} \log \left (b x + a\right )^{2} + 3 \,{\left (B^{2} n^{2} \log \left (b x + a\right ) + B^{2} n \log \left (e\right ) + A B n\right )} \log \left (d x + c\right )^{2} + 3 \,{\left (B^{2} \log \left (e\right )^{2} + 2 \, A B \log \left (e\right ) + A^{2}\right )} \log \left (b x + a\right ) - 3 \,{\left (B^{2} n^{2} \log \left (b x + a\right )^{2} + B^{2} \log \left (e\right )^{2} + 2 \, A B \log \left (e\right ) + A^{2} + 2 \,{\left (B^{2} n \log \left (e\right ) + A B n\right )} \log \left (b x + a\right )\right )} \log \left (d x + c\right )}{3 \,{\left (b c - a d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \log \left (\frac{{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{2}}{{\left (b x + a\right )}{\left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]